﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using OMOMLibrary.Grid.Terrains;
using OMOMLibrary.Units;
using OMOMLibrary.Cities;

namespace OMOMLibrary.Grid{

    public class Cell{
        private Terrain terrain;

        public Terrain Terrain
        {
            get { return terrain; }
            set { terrain = value; }
        }

        private Dictionary<int,Unit> unit;

        private City city;

        public City City
        {
            get { return city; }
            set { city = value; }
        }


        public Cell(Terrain t) 
        {
            unit = new Dictionary<int,Unit>();
            Terrain = t;
        }

        public void addUnit(Unit u) {
            unit.Add(u.Id, u);
        }

        public void delUnit(Unit u) {
            unit.Remove(u.Id);
        }
    }
}
